home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DBVGAL17.ARJ / SRC_ASM.ARJ / SDACS.ASM < prev    next >
Assembly Source File  |  1992-01-25  |  624b  |  40 lines

  1. SDACS_TEXT    segment byte public 'CODE'
  2.     public    _SaveDACs
  3.     extrn    _write:far
  4.    ;
  5.    ;    int  SaveDACs(int fh, char *savearea)
  6.    ;    
  7. saveseg        equ    word ptr [bp+0ah]
  8. saveoff        equ    word ptr [bp+08]
  9. fileh        equ    word ptr [bp+06]
  10.     assume    cs:SDACS_TEXT
  11. _SaveDACs    proc    far
  12.     push    bp
  13.     mov    bp,sp
  14.     push    es
  15.    ;
  16.     mov    ax,saveseg
  17.     mov    es,ax
  18.     mov    dx,saveoff
  19.     mov    ax,1017h
  20.     xor    bx,bx
  21.     mov    cx,256
  22.     int    10h
  23.    ;
  24.    ;       return(write(fh, savearea, 768));
  25.    ;    
  26.     mov    ax,768
  27.     push    ax
  28.     push    saveseg
  29.     push    saveoff
  30.     push    fileh
  31.     call    far ptr _write
  32.     add    sp,8
  33.  
  34.     pop    es
  35.     pop    bp
  36.     ret    
  37. _SaveDACs    endp
  38. SDACS_TEXT    ends
  39.     end
  40.